import Cookies from 'js-cookie';

const TokenKey = 'Admin-Token';

export function getToken() {
  var token = '';
  token = Cookies.get(TokenKey);
  if (token === null || typeof token == 'undefined') {
    token = '';
  }
  return token;
}

export function setToken(token) {
  return Cookies.set(TokenKey, token);
}

export function removeToken() {
  return Cookies.remove(TokenKey);
}
